﻿namespace Genesis.Domain
{

    using Genesis.Infrastructure;
    using Genesis.Infrastructure.Domain;

    public class Membership : Entity
    {

        [Signature]
        public virtual User User { get; protected set; }

        public virtual bool IsPrimary { get; set; }

        public virtual bool IsPreferred { get; set; }

        public Membership(User user)
        {

            Logic.Check(user != null, "User can not be null!");

            User = user;

        }

        protected Membership() { }

    }

}